<template>
  <el-card>
    <el-row type="flex">
      <el-col>
        <slot name="before">
          <el-tag v-if="leftShow">
            <i class="el-icon-info" />
            {{ tip }}
          </el-tag>
        </slot>
      </el-col>
      <el-col v-if="rightShow" class="right-col">
        <slot name="after" />
      </el-col>
    </el-row>
  </el-card>
</template>

<script>
export default {
  props: {
    tip: {
      type: String,
      default: ''
    },
    leftShow: {
      type: Boolean,
      default: true
    },
    rightShow: {
      type: Boolean,
      default: true
    }
  },
  data() {
    return {}
  },

  created() {},

  methods: {}
}
</script>

<style scoped>
.right-col {
  display: flex;
  justify-content: end;
}
</style>
